#ifndef VAR_TO_XML_H
#define VAR_TO_XML_H

#include <QtCore>
#include <QtXml>

void var_to_xml(QXmlStreamWriter & _writer, const QVariant & _variant, const QString & _name = "");
void xml_to_var(QXmlStreamReader & _reader, QVariant & _variant, QString & _name);

QXmlStreamWriter & operator << (QXmlStreamWriter & _writer, const QVariant & _variant);
QXmlStreamReader & operator >> (QXmlStreamReader & _reader, QVariant & _variant);

#endif // VAR_TO_XML_H
